<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。    
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/style.css" />
<script type="text/javascript" src="<%= basePath%>style/js/jquery.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/bootstrap.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/ckform.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/common.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/addNotification.js"></script>



<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

.errorClass{
	display: inline;
	color: red;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
</head>
<body>
	<form action="<%=path%>/rest/notification/addNotification" method="post" class="definewidth m20"
	id="addNotificationForm"  name="addNotificationForm"  >
		<table style="width: 750px;"  class="table table-bordered table-hover definewidth m10">
			<tr >
				<td  width="30%" class="tableleft" style="text-align: right">类型：</td>
				<td  width="70%"  >
				<select class="inputClass" name="type" id="type">
				    <option value="0" >---请选择---</option>													
				    <option value="1">失物招领</option>
					<option value="2">生活贴士</option>
					<option value="3">其他通知</option>
				</select>
				<label class="errorClass" id="typeError" ></label></td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">内容：</td>
				<td><textarea  class="inputClass" name="content"   id="content" ></textarea>
				<label class="errorClass" id="contentError" ></label></td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">备注：</td>
				<td><input class="inputClass"  type="text" name="remark"  id="remark" /></td>
			</tr>
			<tr>
				<td class="tableleft"></td>
				<td>
					<button type="submit" class="btn btn-primary" type="button">保存</button>
					&nbsp;&nbsp;
					<button type="button" class="btn btn-success" name="backid"
						id="backid">返回列表</button>
				</td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
$(function () {       
	$('#backid').click(function(){
		top.topManager.closePage('${page_code}');
	 });

});
</script>
</body>
</html>
